﻿using Microsoft.AspNetCore.Mvc;
using Application;

namespace WebApplication1.Controllers
{
    public class MyController : Controller
    {
        private readonly Iarticle iarticle;
        public MyController(Iarticle _iarticle)
        {
            iarticle = _iarticle;
        }

        public IActionResult Index()
        {
            //dapperhelper dapperhelper = new dapperhelper();
            //var model = dapperhelper.getall();
            //efhelper efhelper = new efhelper();

            var model = iarticle.GetAll();

            return View(model);
        }
    }
}